/**
 * Custom config base for projects using prettier.
 * @see https://github.com/belgattitude/nextjs-monorepo-example/tree/main/packages/eslint-config-bases
 */

const { getPrettierConfig } = require("../helpers");
const { ...prettierConfig } = getPrettierConfig();

module.exports = {
  extends: ["prettier"],
  plugins: ["prettier"],
  rules: {
    "prettier/prettier": ["error", prettierConfig],
    "arrow-body-style": "off",
    "prefer-arrow-callback": "off",
  },
};
